package edu.hainnu.niit.service.Impl;

import edu.hainnu.niit.dao.AuctionHomeDao;
import edu.hainnu.niit.model.News;
import edu.hainnu.niit.model.auction;
import edu.hainnu.niit.service.IAuctionHomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @package_name edu.hainnu.niit.service.Impl
 * @auther GGB
 * @date 2021/12/23
 * @time 08:52
 */
@Service
public class AuctionHomeServiceImpl implements IAuctionHomeService {
    @Resource
    AuctionHomeDao auctionHomeDao;

    @Override
    public List<auction> auctionMaxClickNumByTwo() {
        return auctionHomeDao.auctionMaxClickNumByTwo();
    }

    @Override
    public List<auction> auctionMaxPriceByEight() {
        return auctionHomeDao.auctionMaxPriceByEight();
    }

    @Override
    public List<News> PNewsMaxClickNumByThree() {
        return auctionHomeDao.PNewsMaxClickNumByThree();
    }
}
